package model

import (
	"zsc-boot/app/system_layer/model"
	"zsc-boot/core/orm"
)

type CustomerFollowLog struct {
	orm.Model
	CustomerId   uint                    `json:"customerId" gorm:"column:customer_id;"`
	CustomerInfo Customer                `json:"-" gorm:"foreignKey:CustomerId"`
	UserId       uint                    `json:"userId" gorm:"column:user_id;"`
	UserInfo     model.ServiceUserSimple `json:"userInfo" gorm:"foreignKey:UserId"`
	Remark       string                  `json:"remark" gorm:"column:remark;size:255"`
}

func (CustomerFollowLog) TableName() string {
	return "customer_follow_log"
}

func (CustomerFollowLog) TableComment() string {
	return "客户跟讲记录"
}
